<?php
####################################################
#    notify.php
####################################################
#
# version: 2
# Authour: Daniel Hewes
# Site: http://www.digitalground.net
#
#    Released Under Proprietry Commercial License
#    See License.txt
####################################################
#
#    Handles the order after purchase
#
#####################################################

//
// Include e107 class, Header and the e107Shop classes
//
require("../../class2.php");
require("library/api.php");
require_once(e_HANDLER."np_class.php");
require(HEADERF);

//
// Get the values from the querystring and assign to variables for easy handling
//
$fail = $_GET["fail"];
$order_id = $_GET["order_id"];
$total = $_GET["total"];
$gateway = $_GET["pgway"];

//
// process the order
//

e107shop_complete_order($order_id, $total, $fail, $gateway);


require(FOOTERF);
